/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.db.model;

/**
 *
 * @author i.makhloufi
 */
public class MoodleFlag {

    private Integer pk;
    private String id;
    private String type;

    public MoodleFlag() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getPk() {
        return pk;
    }

    public void setPk(Integer pk) {
        this.pk = pk;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String toString() {
        return getPk()+ " " + getId() + " " + getType();
    }

    public void getStudentFlag(CompteEtudiant std){
        setId( std.getApogee() );
        setType( "std" );
    }

    public void getPersFlag(ComptePersonnel pers){
        setId( pers.getSom() );
        setType( "prs");
    }
}
